﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace msBsc.WebUi.wMall.Public
{
    public partial class wfTravelScenicInfo : msBsc.Cls.BPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
           
        }
        private void GetScenicInfo()
        {
            string scenicId = this.GetParamHtValue("scenicId");
            if (string.IsNullOrEmpty(scenicId))
            {
                //this.ExecJScript(@"window.location.h");
                return;
            }
            using (msBsc.AppLogic.DataAlc.CBizPushScenic scenic = new AppLogic.DataAlc.CBizPushScenic())
            {
                DataSet ds = scenic.GetScenicByIdWithPrevNext(scenicId);
                if (ds != null)
                {
                    string strjson = msBsc.AppLogic.Cfg.HttpTools.GetJsonByTable(ds.Tables[0], "", "", 1, 20, "");
                    this.ExecJScript(@"setScenicInfo(" + strjson + @");");
                }
            }
        }

        //public override void DoAction()
        //{
        //    if (this.strAction == "getScenicInfo")
        //    {
        //        GetScenicInfo();
        //    }
        //}
        public override void DoAction()
        {
            base.DoAction();
            if (this.strAction == "init")
            {
                GetScenicInfo();
            }
        }
    }
}